<?php
function rt_tag($aqid){
	$ref = getenv('HTTP_REFERER');
	$ref = urlencode($ref);
	$my_url = urlencode("//".getenv('SERVER_NAME').getenv('SCRIPT_NAME'));
	if (!empty($my_url)) $rt_param[] = "/2=$my_url";
	if (!empty($ref)) $rt_param[] = "/4=$ref";
	$tag = "<img src=\"http://t7.aqtracker.com/cgi-bin/asp/tagx/h/$aqid";
	foreach ($rt_param as $val) $tag .= $val;
	$tag .= "/blank.gif?guid=on\" width=\"1\" height=\"1\" />";
	echo $tag;
}
$_aqid = "AA9B2HP473M9JVKA3SEA";
rt_tag($_aqid);
?>